package generic;

public class GerericFruit {

    class Fruit{
        @Override
        public String toString() {
            return "fruit";
        }
    }

    class Apple extends Fruit{
        @Override
        public String toString() {
            return "apple";
        }
    }

    class Person{
        @Override
        public String toString() {
            return "person";
        }
    }

    class GenericTest<T> {
        public void show_1(T t) {
            System.out.println(t.toString());
        }

        public <E> void show_2(E t) {
            System.out.println(t.toString());
        }

        public <T> void show_3(T t) {
            System.out.println(t.toString());
        }
    }


}
